]> dgit.raspbian.org Git - gnome-shell.git/commit
windowMenu: Do a better job with faking the source actor
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 31 May 2014 03:19:20 +0000 (05:19 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 2 Jun 2014 21:48:53 +0000 (23:48 +0200)
commite51eb723fc7a7dbd7d79bbfd74f72e016d05aa66
tree76b9f674afd4d2af63b948679b0cb63b05ef617f
parent5b61f2d64263bd987a9b55a806b0b8be1a148eb2
windowMenu: Do a better job with faking the source actor

The 0x0 dummyCursor works well when the menu pops up directly underneath
the pointer (e.g. when triggered by right-clicking the titlebar) or by
keyboard, but not when triggered by the menu button - the menu does not
point to the center of the button's bottom edge, and unless the user
keeps holding the mouse button while moving into the menu, the menu will
be dismissed immediately on button release.
Address these issues by using the button geometry to overlay the window
button with an appropriately sized actor that acts as a proper sourceActor,
to make the window menu behavior consistent with other shell menus.

https://bugzilla.gnome.org/show_bug.cgi?id=731058
js/ui/windowMenu.js